<template>
	<view class="order_deta_two">
		<Navbar>订单详情</Navbar>
		<scroll-view scroll-y class="scroll_view">
			<!-- <view class="status">
				<view class="icon">待支付</view>
				<view class="time">倒计时 00:00:49</view>
			</view> -->
			<view class="status">
				<view class="icon fail">订单超时</view>
			</view>

			<view class="content">
				<view class="show_view">
					<image :src="`${baseImageUrl}/test/2.png`" class="cover"></image>
					<view class="info">
						<view class="name">江湖百晓生</view>
						<view class="number">#1848</view>
					</view>
				</view>
				<view class="title">
					<image :src="`${baseImageUrl}/home/xs.png`"></image>
					<text>订单详情</text>
				</view>
				<view class="item">订单金额：￥99.99</view>
				<view class="item">订单编号：12345689789</view>
			</view>
			<view class="sub_title">
				<image :src="`${baseImageUrl}/home/xs2.png`"></image>
				<text>订单说明</text>
			</view>
			<view class="u_parse">
				<u-parse :content="content" :previewImg="false"></u-parse>
			</view>
		</scroll-view>
		<view class="footer">
			<view class="btn not">取消</view>
			<view class="btn" @click="router('/pages/common/order_deta')">立即购买</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: "111"
			}
		},
		methods: {}
	}
</script>

<style scoped lang="scss">
	$footerHeight: 157rpx;

	.order_deta_two {
		height: 100vh;
		background: #29170D;
		overflow: hidden;

		.scroll_view {
			height: calc(100vh - #{$navbarHeight} - #{$footerHeight});
			padding: 0 30rpx;
			box-sizing: border-box;

			.status {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;

				.icon {
					width: 240rpx;
					height: 240rpx;
					color: #38880F;
					font-size: 40rpx;
					font-weight: 400;
					font-family: LiSu;
					display: flex;
					justify-content: center;
					align-items: flex-end;
					background: url(#{$baseImageUrl}/common/time2.png) no-repeat;
					background-size: 100% 100%;

					&.fail {
						color: #CA372E;
						background: url(#{$baseImageUrl}/common/unlock_fail.png) no-repeat;
						background-size: 100% 100%;
					}
				}

				.time {
					text-align: center;
					color: #FFFFFF;
					font-size: 28rpx;
					font-weight: 400;
					font-family: SimSun;
					margin-top: 20rpx;
				}
			}

			.content {
				width: 100%;
				height: 526rpx;
				margin: 40rpx 0;
				padding-top: 30rpx;
				padding-left: 36rpx;
				box-sizing: border-box;
				background: url(#{$baseImageUrl}/bg/688_526.png) no-repeat;
				background-size: 100% 100%;

				.show_view {
					display: flex;

					.cover {
						width: 200rpx;
						height: 200rpx;
					}

					.info {
						flex: 1;
						padding: 20rpx 0 0 34rpx;
						box-sizing: border-box;

						.name {
							color: #494338;
							font-size: 50rpx;
							font-weight: 400;
							font-family: LiSu;
						}

						.number {
							color: #494338;
							font-size: 40rpx;
							font-weight: 400;
							font-family: LiSu;
							margin-top: 20rpx;
						}
					}
				}

				.title {
					height: 98rpx;
					display: flex;
					align-items: center;

					image {
						width: 32rpx;
						height: 32rpx;
					}

					text {
						color: #494338;
						font-size: 32rpx;
						font-family: SimSun;
						font-weight: 400;
						padding-left: 12rpx;
						box-sizing: border-box;
					}
				}

				.item {
					color: #494338;
					font-size: 32rpx;
					font-weight: 400;
					font-family: SimSun;
					margin-bottom: 20rpx;
				}
			}

			.sub_title {
				height: 98rpx;
				display: flex;
				align-items: center;

				image {
					width: 32rpx;
					height: 32rpx;
				}

				text {
					color: #FFFFFF;
					font-size: 32rpx;
					font-family: SimSun;
					font-weight: 400;
					padding-left: 12rpx;
					box-sizing: border-box;
				}
			}

			.u_parse {
				color: #fff;
				font-family: SimSun;
			}
		}

		.footer {
			width: 100%;
			height: $footerHeight;
			background: #29170D;
			border-top: 2px solid #BC8478;
			padding: 14rpx 30rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: center;

			.btn {
				width: 210rpx;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
				color: #FFFFFF;
				font-size: 30rpx;
				font-weight: 400;
				font-family: SimSun;
				margin: 0 40rpx;
				background: url(#{$baseImageUrl}/common/btn.png) no-repeat;
				background-size: 100% 100%;

				&.not {
					background: url(#{$baseImageUrl}/common/btn2.png) no-repeat;
					background-size: 100% 100%;
				}
			}
		}
	}
</style>